/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.vrangogym.persistence.impl;

import edu.chl.vrangogym.persistence.AbstractFacade;
import edu.chl.vrangogym.persistence.entities.User;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * Class for handling modifications on Users in the database.
 * 
 * @author Anders
 */
@Stateless
public class UserFacade extends AbstractFacade<User> {
    
    @PersistenceContext(unitName = "gym_pu")
    private EntityManager em;
    
    public UserFacade() {
        super(User.class);
    }
    
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
    
}
